// $mainColor: #9F47ED;
$mainColor: #775ce5;
$transitionTime: 0.5s;

// 注册盒子样式
.register-box {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 100%;
    height: 100%;
    color: white;

    // 注册标题样式
    .register-title {
        font-weight: 100;
        font-size: 32px;
        margin-bottom: 32px;
        letter-spacing: 8px;
        margin-right: -8px;
    }

    // 注册表单样式
    .register-form {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;

        :nth-child(n) {
            margin-bottom: 24px;
        }

        // 输入框样式
        input {
            width: 60%;
            height: 36px;
            padding: 0px 20px;
            font-size: 18px;
            color: white;
            text-align: center;
            background-color: transparent;
            border: none;
            border-bottom: 1px solid rgba($color: white, $alpha: 0.8);
            transition: border $transitionTime;

            &::placeholder {
                color: white;
            }
        }

        // 获取验证码块样式
        .register-code-pane {
            display: flex;
            position: relative;
            width: calc(100% - 82px);

            // 验证码输入框样式
            .register-code {
                width: 100%;
                padding-right: 100px;
                padding-left: 10px;
            }

            // 验证码按钮样式
            .register-code-button {
                display: block;
                position: absolute;
                top: -3px;
                right: 0px;
                width: 100px;
                height: 40px;
                padding: 0;
                font-size: 16px;
                background-color: transparent;
                border: none;
                cursor: pointer;
                transition: color $transitionTime;

                &:hover {
                    color: #cccccc;
                }

                &:disabled {
                    color: rgb(200, 200, 200);
                    cursor: not-allowed;
                }
            }
        }

        // 注册按钮样式
        .register-button {
            padding: 0;
            width: calc(60% + 40px);
            height: 40px;
            color: $mainColor;
            background-color: white;
            border: 1px solid $mainColor;
            border-radius: 4px;
            transition: opacity $transitionTime;
            cursor: pointer;

            &:hover {
                opacity: 0.8;
            }
        }

        // 链接样式
        a {
            color: white;
            transition: color $transitionTime;

            &:hover {
                color: #cccccc;
            }
        }
    }
}